home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / drawmain.cpp < prev    next >
C/C++ Source or Header  |  1995-01-14  |  2KB  |  51 lines

  1. #include <alloc.h>      // The example of simple graphics editor interface
  2. #include <iostream.h>   // creation. The program shows linemenu with
  3. #include <conio.h>    // Paint Brush like choices: File, Edit, View etc.,
  4.             // Help system explains the behavior of package
  5.  
  6. #include "kh_draw.h"
  7.  
  8. extern unsigned _stklen = 16000;
  9.  
  10. void main()
  11.     {
  12.     if(!init_KNOW_HOW(DETECT, 1))
  13.         return;
  14.     ///////////////////////////
  15.     rect r_help(5, 5, 70, 25);
  16.     help_object = new HypertextView(r_help, "draw.hlp", "_help.pcy",
  17.                   MOVE | RESIZE,
  18.                   pScreenSet->sub_interval,
  19.                                   SHOW_BORDER, 10, "HOTKEY",
  20.                                   BLUE, YELLOW, 56);
  21.  
  22.     KH_Draw* kh_draw = new KH_Draw("kh_draw.pcy", "work.buf");
  23.  
  24.     setfillstyle(SOLID_FILL, getmaxcolor());
  25.     bar(0, 0, getmaxx(), getmaxy());
  26.  
  27.     kh_draw->show();
  28.  
  29.     kh_draw->exe();      // process the program
  30.  
  31.     delete help_object;
  32.     delete kh_draw;
  33.  
  34.     close_KNOW_HOW();
  35.     closegraph();
  36. cout << "\n";
  37. cout << "\n";
  38. cout << "HOTKEY Copyright (C) 1992 - 1994 Stepan S Vartanov\n";
  39. cout << "\n";
  40. cout << "This program is SHAREWARE. To get supprot and discount for next\n";
  41. cout << "versions, you should REGISTER. Registration fee is 30$ USA. \n\n";
  42. cout << "Send money to: \n";
  43. cout << "   P.O.Box 34041, Scotia Square RPO, Halifax, N.S.,\n";
  44. cout << "   Canada. B3J 3S1.\n";
  45. cout << "and add registration card:\n";
  46. cout << "   Full name; Address or (better) E.mail; Program name and version.\n\n";
  47. cout << "Support: ad398@cfn.cs.dal.ca, Stepan Vartanov.\n";
  48.  
  49.     }
  50.  
  51.